package com.sxau.software_educational_system_backend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxau.software_educational_system_backend.common.BaseResponse;
import com.sxau.software_educational_system_backend.common.ResultUtils;
import com.sxau.software_educational_system_backend.domain.entity.AdmitStudent;
import com.sxau.software_educational_system_backend.service.AdmitStudentService;
import com.sxau.software_educational_system_backend.mapper.AdmitStudentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
* @author mi
* @description 针对表【admit_student】的数据库操作Service实现
* @createDate 2025-05-07 20:35:58
*/
@Service
public class AdmitStudentServiceImpl extends ServiceImpl<AdmitStudentMapper, AdmitStudent>
    implements AdmitStudentService{

    @Resource
    private AdmitStudentMapper admitStudentMapper;

    @Override
    public List<AdmitStudent> getByState(Integer studentState) {
        QueryWrapper<AdmitStudent> objectQueryWrapper = new QueryWrapper<>();
        objectQueryWrapper.eq("admit_state", studentState);
        return admitStudentMapper.selectList(objectQueryWrapper);
    }
}




